//
//  StudentPackage.h
//  Classes & Objects
//
//  Created by admin on 2019/8/1.
//  Copyright © 2019 猫爷爷的酱醋茶. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

//进行setter、getter封装，这样可以对赋值进行判断处理

//只读封装 只封装getter
//只写封装 只封装setter

@interface Student : NSObject
{
    NSString *_name;
    int _age;
    float _ChineseScore;
    float _EnglishScore;
    float _MathScore;
    
}

-(void)setName:(NSString*)name;
-(NSString *)name;

-(void)setAge:(int)age;
-(int)age;

-(void)setChineseScore:(float)ChineseScore;
-(float)ChineseScore;

-(void)setEnglishScore:(float)EnglishScore;
-(float)EnglishScore;

-(void)setMathScore:(float)MathScore;
-(float)Mathscore;

-(void)SayHi;

@end

NS_ASSUME_NONNULL_END
